combobox: Unconditionally draw background and border
authorBenjamin Otte <otte@redhat.com>
Sun, 19 Jul 2015 16:35:33 +0000 (18:35 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 21 Jul 2015 00:28:53 +0000 (02:28 +0200)
gtk/gtkcombobox.c

index a81b341dd691d27ce4109b38ca7ff06ec2bd45e8..b2e409bc18d53c716cf66c4282615e82a5b4847a 100644 (file)
@@ -2781,20 +2781,16 @@ gtk_combo_box_draw (GtkWidget *widget,
 {
   GtkComboBox *combo_box = GTK_COMBO_BOX (widget);
   GtkComboBoxPrivate *priv = combo_box->priv;
+  GtkStyleContext *context;
 
-  if (priv->shadow_type != GTK_SHADOW_NONE)
-    {
-      GtkStyleContext *context;
-
-      context = gtk_widget_get_style_context (widget);
+  context = gtk_widget_get_style_context (widget);
 
-      gtk_render_background (context, cr, 0, 0,
-                             gtk_widget_get_allocated_width (widget),
-                             gtk_widget_get_allocated_height (widget));
-      gtk_render_frame (context, cr, 0, 0,
-                        gtk_widget_get_allocated_width (widget),
-                        gtk_widget_get_allocated_height (widget));
-    }
+  gtk_render_background (context, cr, 0, 0,
+                         gtk_widget_get_allocated_width (widget),
+                         gtk_widget_get_allocated_height (widget));
+  gtk_render_frame (context, cr, 0, 0,
+                    gtk_widget_get_allocated_width (widget),
+                    gtk_widget_get_allocated_height (widget));
 
   gtk_container_propagate_draw (GTK_CONTAINER (widget),
                                 priv->button, cr);